import { http } from '@/utils/http/axios';

export interface StatChange {
  type: number;
  status: string;
  userId: number;
}

/**
 * 查询接口阐述
 */
export function getPlayerPageList(params) {
  return http.request({
    url: '/system/game/user/filter',
    method: 'POST',
    params,
  });
}

/**
 * 修改状态
 * @param params
 */
export function modifyStatus(params: StatChange) {
  return http.request({
    url: '/system/game/user/statchange',
    method: 'POST',
    params,
  });
}

/**
 * 提现记录
 * @param params
 */
export function reflectRecord(params) {
  return http.request({
    url: '/system/reflectRecord',
    method: 'POST',
    params,
  });
}

/**
 * 渠道玩家
 * @param params
 */
 export function getChanPlayer(params) {
  return http.request({
    url: '/system/game/chanPlayer',
    method: 'POST',
    params,
  });
}